function fs_old = change_sampling_rate( fs_new )
    fs_old = playrec('getSampleRate');
    playDeviceID = playrec('getPlayDevice');
    recDeviceID = playrec('getRecDevice');
    playrec('reset');
    playrec('init', fs_new, playDeviceID, recDeviceID);
end

